package com.danhuang.cloud.danhuangcore.constant;


import java.util.HashMap;
import java.util.Map;

public class ResConstant {

    public static final Integer SUCCESS_CODE = 0;

    public static final Integer DUPLICATE_CODE = 1;

    public static final Integer PARAM_ERROR_CODE = 10;

    public static final Integer NO_RESULT_CODE = 20;

    public static final Integer NO_OPENID_CODE = 997;

    public static final Integer NO_PERMISSION_CODE = 998;

    public static final Integer SYSTEM_ERROR_CODE = 999;



    public static final Map<Integer,String> map = new HashMap<>();

    static{
        map.put(SUCCESS_CODE,"成功");
        map.put(SYSTEM_ERROR_CODE,"系统异常");
        map.put(NO_RESULT_CODE, "无数据");
        map.put(PARAM_ERROR_CODE, "[{}]:{}");
        map.put(NO_OPENID_CODE, "请先登录");
        map.put(NO_PERMISSION_CODE, "没有权限");
        map.put(DUPLICATE_CODE, "{}重复");
    }
}
